package initialize

import (
	"github.com/gin-gonic/gin"
	"service_base_shop_api/order_web/api"
	"service_base_shop_api/order_web/middlewares"
	"service_base_shop_api/order_web/router"
)

func InitRouter()  *gin.Engine {
	Router := gin.Default()
	Router.Use(middlewares.Cors())
	Router.GET("/health",api.Health_check)
	ApiGroup := Router.Group("/v1")
	router.InitOrderRouter(ApiGroup)
	return Router
}
